<template>
  <div class="menu_main">
    <div class="menu_item" @click="goto('/a')">跳转到A</div>
    <div class="menu_item" @click="goto('/b')">跳转到B</div>
  </div>
</template>

<script>
export default {
  name: 'Menu',
  created() {
    console.log('菜单加载完成,' + '当前版本:' + version, new Date().toLocaleString(), env)
  },
  methods: {
    goto(path) {
      console.log('点击了:', path)
    }
  }
}
</script>

<style scoped>
.menu_main {
  display: flex;
}

.menu_item {
  margin: 10px;
  padding: 5px;
  border: 1px solid #ccc;
  color: red;
}
</style>